import request from '@/utils/request'


export default {



    //展示前四个教师
    getTeacherList() {

        return request({

            url: `/eduservice/edu-teacher/showTeachers`,

            method: "get"


        })

    },

    //查询教师分页（pagesize = 8）
    getTeacherPage(pageQuery) {

        return request({

            url: `/eduservice/edu-teacher/getPageList`,
            method: "post",
            data: pageQuery
        })

    },

    //根据teacherid查询教师详情
    getTeacherInfoById(teacherId) {

        return request({

            url: `/eduservice/edu-teacher/getTeacherById?id=${teacherId}`,
            method: "get"
        })
    },

    //根据教师id查询课程分页（pagesize = 4）
    getCoursePageByteacherId(pageQuery) {

        return request({
            url: `/eduservice/edu-course/getCoursePage`,
            method: "post",
            data: pageQuery
        })
    }

}